package com.gd.coreservice.service;

import com.gd.coreservice.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2024-03-23
 */
public interface GoodsService extends IService<Goods> {

    List<Goods> findAll();

    List<Goods> getUidGoods(String uid, String status, String name);

    Integer getSidTotal(String uid, String status, String name);

    Goods findOne(String gid);

    boolean insertGoods(Goods goods);

    boolean updateGoodsGstatus(String gid, String status);

    boolean updateGoods(Goods goods);

    boolean updateStudentGoods(Goods goods);

    Integer deleteGoods(String gid);

    Integer deleteGoodsBatch(List<String> gids);

    Map<String, Object> getPageMap(Integer pageNum, Integer pageSize, String gname);

    Map<String, Object> getAdminPageMap(Integer pageNum, Integer pageSize, String gname);

    int getAllTotal();
}
